package com.xianyun.book.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author ytt
 */
@Data
public class BookUpdateCmd extends CommonCommand{
    /**书籍编号*/
    private Integer bookId;
    /**书籍图片*/
    private String imgUrl;
    /**书籍状态 有货 无货 促销....*/
    private Integer bookStatus;
    /**书籍名称*/
    private String bookName;
    /**原始价格*/
    private BigDecimal originalPrice;
    /**出版人*/
    private String author;
    /**出版日期*/
    @JsonFormat(pattern = "yyyy-MM",timezone = "GMT+8")
    private Date publishDate;
    /**书籍对应的ISBN码*/
    private String isbn;
    /**在售书籍数目*/
    private Integer inSellNumber;
    /**已售书籍数目*/
    private Integer hadSellNumber;
    /**书籍介绍*/
    private String bookDesc;
    /**折扣率*/
    private Double discountRate;
    /**上新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date newDate;
    /**标签集合*/
    private List<String> bookLabs;
}
